package com.sj.purchase.modules.cost.domain.stock;

import com.sj.purchase.modules.cost.domain.WarehouseEnum;
import com.sj.purchase.modules.purchase.domain.PurchaseId;

import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * 库存复合主键id
 * Created by icodebug on 17-7-14.
 */
@Embeddable
public class SkuStockId extends PurchaseId {
	@Enumerated(EnumType.STRING)
	private WarehouseEnum warehouse;

	public WarehouseEnum getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(WarehouseEnum warehouse) {
		this.warehouse = warehouse;
	}
}
